<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>模版语法</title>
        <script type="text/javascript" src="../js/vue.js"></script>
    </head>

    <body>
        <div id="root">
            <h1>插值语法</h1>
            <h1>
                你好,{{name}}
            </h1>
            <hr>

            <h1>指令语法</h1>
            <a :href="school.url">点我去{{school.web}}学习</a>
        </div>
        <script type="text/javascript">
            new Vue({
                el:'#root',
                data:{
                    name:'yqr',
                    school:{
                        url:'https://www.bilibili.com',
                        web:'腾讯'
                    }
                }
            })
        </script>
    </body>
</html>